package survey.action;

import javax.annotation.Resource;

import survey.entity.User;
import survey.service.UserService;

import com.opensymphony.xwork2.ActionSupport;

public class UserAction extends ActionSupport {
	
	private static final long serialVersionUID = 1L;
	@Resource
	private UserService userService;
	private User user;

	

	public void setUser(User user) {
		this.user = user;
	}

	public UserService getUserService() {
		return userService;
	}

	public void setUserService(UserService userService) {
		this.userService = userService;
	}

	public User getUser() {
		return user;
	}

	public String getUserInfo() {
		user = userService.getUserInfo(user);
		return SUCCESS;
	}

}
